package com.lemeng.service;

import com.lemeng.entity.PageResult;
import com.lemeng.pojo.Brand;
import com.lemeng.pojo.CategoryBrand;

import java.util.List;
import java.util.Map;

public interface CategoryBrandService {

    public List<CategoryBrand> findAll();

    public PageResult<CategoryBrand> findPage(Integer page, Integer size);

    public List<CategoryBrand> findList(Map<String, Object> serchMap);

    public PageResult<CategoryBrand> findPage(Integer page, Integer size, Map<String, Object> serchMap);

    public CategoryBrand findById(Integer id);

    void add(CategoryBrand categoryBrand);

    void update(CategoryBrand categoryBrand);

    void delete(Integer id);

    List<Brand> findByCategoryIdTkMapper(Integer categoryId);

    List<Brand> findBrandByCategoryIdByMybatisXml(Integer categoryId);
}
